import {createRouter,createWebHashHistory,} from 'vue-router'
import Login from "./pages/Login.vue"
import NavPage from "./pages/NavPage.vue"
import Home from "./pages/Home.Vue"
import User from "./pages/system/User.vue"
import Role from "./pages/system/Role.vue"
import Menu from "./pages/system/Menu.vue"
import Dict from "./pages/system/Dict.vue"
import Profile from "./pages/Profile.vue"
const routes=[
    {path:"/",redirect:"/login"},
    {path:"/login",component:Login},
    {path:"/nav",name:"nav", component:NavPage,children:[
        {path:"home", component:Home},
        {path:"/nav/system/user", component:User},
        {path:"/nav/system/role", component:Role},
        {path:"/nav/system/menu", component:Menu},
        {path:"/nav/system/dict", component:Dict},
        {path:"/nav/profile", component:Profile},
    ]},
   
]
export const router=createRouter({
    history:createWebHashHistory(),
    routes
})